package com.gome.axwl.aoc.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

public class AppVersionDto {
    /**
     * 表自增主键
     */
    @ApiModelProperty(value = "表自增主键")
    private Integer id;

    /**
     * 版本编号
     */
    @ApiModelProperty(value = "版本编号")
    private String versionCode;

    /**
     * 版本名称
     */
    @ApiModelProperty(value = "版本名称")
    private String versionName;

    /**
     * 更新内容
     */
    @ApiModelProperty(value = "更新内容")
    private String versionUpdateContent;

    /**
     * 版本类型 0-非强制更新  1-强制更新
     */
    @ApiModelProperty(value = "版本类型 0-非强制更新  1-强制更新")
    private String versionType;

    /**
     * 推送范围 0-全员推送  1-部分dc
     */
    @ApiModelProperty(value = "推送范围 0-全员推送  1-部分dc")
    private String versionPushScope;

    /**
     * dc文件的存储路径
     */
    @ApiModelProperty(value = "dc文件的存储路径")
    private String verisonDcPath;

    /**
     * 系统类型  0-android  1-ios
     */
    @ApiModelProperty(value = "系统类型  0-android  1-ios")
    private String versionSystemType;

    /**
     * app的存储路径
     */
    @ApiModelProperty(value = "app的存储路径")
    private String versionAppPath;

    /**
     * 状态  0-未发布  1-已发布  2-已删除
     */
    @ApiModelProperty(value = "状态  0-未发布  1-已发布  2-已删除")
    private String versionStatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date versionCreateTime;

    /**
     * 保存文件的名称
     */
    @ApiModelProperty(value = "保存文件的名称")
    private String saveFileName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode == null ? null : versionCode.trim();
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName == null ? null : versionName.trim();
    }

    public String getVersionUpdateContent() {
        return versionUpdateContent;
    }

    public void setVersionUpdateContent(String versionUpdateContent) {
        this.versionUpdateContent = versionUpdateContent == null ? null : versionUpdateContent.trim();
    }

    public String getVersionType() {
        return versionType;
    }

    public void setVersionType(String versionType) {
        this.versionType = versionType == null ? null : versionType.trim();
    }

    public String getVersionPushScope() {
        return versionPushScope;
    }

    public void setVersionPushScope(String versionPushScope) {
        this.versionPushScope = versionPushScope == null ? null : versionPushScope.trim();
    }

    public String getVerisonDcPath() {
        return verisonDcPath;
    }

    public void setVerisonDcPath(String verisonDcPath) {
        this.verisonDcPath = verisonDcPath == null ? null : verisonDcPath.trim();
    }

    public String getVersionSystemType() {
        return versionSystemType;
    }

    public void setVersionSystemType(String versionSystemType) {
        this.versionSystemType = versionSystemType == null ? null : versionSystemType.trim();
    }

    public String getVersionAppPath() {
        return versionAppPath;
    }

    public void setVersionAppPath(String versionAppPath) {
        this.versionAppPath = versionAppPath == null ? null : versionAppPath.trim();
    }

    public String getVersionStatus() {
        return versionStatus;
    }

    public void setVersionStatus(String versionStatus) {
        this.versionStatus = versionStatus == null ? null : versionStatus.trim();
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    public Date getVersionCreateTime() {
        return versionCreateTime;
    }

    public void setVersionCreateTime(Date versionCreateTime) {
        this.versionCreateTime = versionCreateTime;
    }

    public String getSaveFileName() {
        return saveFileName;
    }

    public void setSaveFileName(String saveFileName) {
        this.saveFileName = saveFileName;
    }

    @Override
    public String toString() {
        return "AppVersionDto{" +
                "id=" + id +
                ", versionCode='" + versionCode + '\'' +
                ", versionName='" + versionName + '\'' +
                ", versionUpdateContent='" + versionUpdateContent + '\'' +
                ", versionType='" + versionType + '\'' +
                ", versionPushScope='" + versionPushScope + '\'' +
                ", verisonDcPath='" + verisonDcPath + '\'' +
                ", versionSystemType='" + versionSystemType + '\'' +
                ", versionAppPath='" + versionAppPath + '\'' +
                ", versionStatus='" + versionStatus + '\'' +
                ", versionCreateTime=" + versionCreateTime +
                ", saveFileName='" + saveFileName + '\'' +
                '}';
    }

}